package net.tv90.business.model.dto;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class SubjectSubmitDTO {

    @NotEmpty(message = "字段不能为空")
    String name;

    @Max(5)
    @Min(0)
    @NotNull(message = "字段不能为空")
    Integer difficulty;

    @NotNull(message = "字段不能为空")
    Long teacherId;
}
